import scala.swing.ToggleButton

package layoutVariety 
{
	abstract class Toggle(ref:Int) extends Widget(ref)
	{
		protected var jt:ToggleButton = null
		
		jc = jt
		
		//adding proper functionality
		namesToFuncs("checked") = setChecked
		
		def isChecked = jt.selected
		
		def setChecked(ref:AnyRef)
		{	
		  	var bool = ref.asInstanceOf[Boolean]
			jt.selected = bool
		}
		
	}
}